﻿using Microsoft.Azure.Cosmos.Table;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace ToolManager.IService
{
    public interface IStorageService
    {
        Task<TableBatchResult> InsertBatchData(TableBatchOperation batch, string tableName);
        Task<List<T>> GetBusData<T>(string tableName,TableQuery<T> queryBody = null, CancellationToken ct = default(CancellationToken)) where T : ITableEntity, new();
        Task<bool> DeleteTableAsync(string tableName);
    }
}
